import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("account")
export class AccountEntity {
  @PrimaryGeneratedColumn({ name: "id", type: "int", comment: "账户id" })
  id: number;

  @Column({ name: "account", type: "varchar", comment: "账号", unique: true })
  account: string;

  @Column({ name: "password", type: "varchar", comment: "密码" })
  password: string;
}